package com.garen.core;

import lombok.Data;

/**
 * ClassName: Endpoint
 * Description:
 *
 * @author kang.wang03
 *         Date 16/9/7
 */
@Data
public class Endpoint {
    //服务名称
    public String serviceName;
    //当前ip地址
    public String ipv4;
    public byte[] ipv6;

    public static Endpoint build() {
        return new Endpoint();
    }

    public Endpoint serviceName(String serviceName) {
        this.serviceName = serviceName;
        return this;
    }

    public Endpoint ipv4(String ipv4) {
        this.ipv4 = ipv4;
        return this;
    }

    public Endpoint ipv6(byte[] ipv6) {
        this.ipv6 = ipv6;
        return this;
    }
}
